public class Date {

    public int year;
    public int month;
    public int day;


  

    public void setDate(int y, int m, int d) {
        this.year = y;
        this.month = m;
        this.day = d;
}
    public void printDate(){
        System.out.println("年："+year+"月："+month+"日："+day);
    }
    public static void main(String[] args) {
        Date date = new Date();
        date.setDate(2008,8,8);
        date.printDate();
    }
}